package com.yiyi.credit.manage.sso.mapper;

import com.yiyi.credit.manage.sso.common.mapper.CommonMapper;
import com.yiyi.credit.manage.sso.common.page.Pagination;
import com.yiyi.credit.manage.sso.model.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;


import java.util.List;


public interface SysRoleMapper extends CommonMapper<SysRole> {

    @SelectProvider(type = SysRoleSqlProvider.class, method = "queryForPage")
    List<SysRole> getPageData(@Param("sysInfoId") Long sysInfoId, @Param("pagination") Pagination pagination);

    @SelectProvider(type = SysRoleSqlProvider.class, method = "queryCount")
    Long getCount(@Param("sysInfoId") Long sysInfoId);
}
